﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PB.Airsoft.Business.Base;
using PB.Airsoft.Business.User.Interfaces;

namespace PB.Airsoft.Business.User
{
    public class UserManager : ManagerBase<UserProvider>
    {
        public static IUser CreateUser(string name)
        {
            return Provider.CreateUser(name);
        }

        public static IUser GetUser(Guid id)
        {
            return Provider.GetUser(id);
        }

        public static void IncrementMoney(Guid userId, decimal money)
        {
            Provider.IncrementMoney(userId, money);
        }

        public static void AddItem(Guid userId, Guid itemId)
        {
            Provider.AddItem(userId, itemId);
        }

        public static List<IUserInventoryItem> GetUserInventoryItems(Guid userId)
        {
            return Provider.GetUserInventoryItems(userId);
        }

        public static void RemoveItem(Guid userId, Guid itemId)
        {
            Provider.RemoveItem(userId, itemId);
        }
    }
}
